home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / a_man / cat1 / acctcms.z / acctcms
Encoding:
Text File  |  1998-10-20  |  4.5 KB  |  133 lines

  1.  
  2.  
  3.  
  4. aaaaccccccccttttccccmmmmssss((((1111MMMM))))                                                        aaaaccccccccttttccccmmmmssss((((1111MMMM))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      _aaaa_cccc_cccc_tttt_cccc_mmmm_ssss - command summary from per-process accounting records
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      _////_uuuu_ssss_rrrr_////_llll_iiii_bbbb_////_aaaa_cccc_cccc_tttt_////_aaaa_cccc_cccc_tttt_cccc_mmmm_ssss [_----_aaaa [_----_pppp] [_----_oooo]] [_----_cccc] [_----_jjjj] [_----_nnnn] [_----_ssss] [_----_tttt] _f_i_l_e_s
  13.  
  14. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  15.      _aaaa_cccc_cccc_tttt_cccc_mmmm_ssss reads one or more _f_i_l_e_s, normally in the form described in
  16.      _aaaa_cccc_cccc_tttt(4).  It adds all records for processes that executed identically
  17.      named commands, sorts them, and writes them to the standard output,
  18.      normally using an internal summary format.  The options are:
  19.  
  20.      _----_aaaa   Print output in ASCII rather than in the internal summary format.
  21.           The output includes command name, number of times executed, total
  22.           kcore minutes, total CPU minutes, total real minutes, mean size (in
  23.           kilobytes), mean CPU minutes per invocation, hog factor, characters
  24.           transferred, and blocks read and written, as in _aaaa_cccc_cccc_tttt_cccc_oooo_mmmm(1).  Output
  25.           is normally sorted by total kcore minutes.
  26.  
  27.      _----_cccc   Sort by total CPU time, rather than by total kcore minutes.
  28.  
  29.      _----_jjjj   Combine all commands invoked only once under ``***other.''
  30.  
  31.      _----_nnnn   Sort by number of command invocations.
  32.  
  33.      _----_ssss   Any filenames encountered hereafter are already in internal summary
  34.           format.
  35.  
  36.      _----_tttt   Process all records as total accounting records.  The default
  37.           internal summary format splits each field into prime- and nonprime-
  38.           time parts.  This option combines the prime- and nonprime-time parts
  39.           into a single field that is the total of both and provides upward
  40.           compatibility with old-style (that is, pre-UNIX System V Release
  41.           4.0) _aaaa_cccc_cccc_tttt_cccc_mmmm_ssss internal summary format records.
  42.  
  43.      The following options can be used only with the _----_aaaa option.
  44.  
  45.      _----_pppp   Output a prime-time-only command summary.
  46.  
  47.      _----_oooo   Output a nonprime-time only (offshift) command summary.
  48.  
  49.      When _----_pppp and _----_oooo are used together, a combination prime- and nonprime-time
  50.      report is produced.  All the output summaries are total usage except
  51.      number of times executed, CPU minutes, and real minutes, which are split
  52.      into prime and nonprime.
  53.  
  54.      _aaaa_cccc_cccc_tttt_cccc_mmmm_ssss checks the environment variable _A_C_C_T__C_S_I_Z_E to figure out the
  55.      maximum number of distinct commands it might need to report.
  56.  
  57.      A typical sequence for performing daily command accounting and for
  58.      maintaining a running total is:
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. aaaaccccccccttttccccmmmmssss((((1111MMMM))))                                                        aaaaccccccccttttccccmmmmssss((((1111MMMM))))
  71.  
  72.  
  73.  
  74.           acctcms file ... > today
  75.           cp total previoustotal
  76.           acctcms -s today previoustotal > total
  77.           acctcms -a -s today
  78.  
  79.  
  80. RRRREEEEFFFFEEEERRRREEEENNNNCCCCEEEESSSS
  81.      acct(1M), acctcom(1), acctcon(1M), acctmerg(1M), acctprc(1M), acctsh(1M),
  82.      fwtmp(1M), runacct(1M), acct(2), acct(4), utmp(4).
  83.  
  84. NNNNOOOOTTTTIIIICCCCEEEESSSS
  85.      Unpredictable output results if _----_tttt is used on new-style internal summary
  86.      format files or if it is not used with old-style internal summary format
  87.      files.
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.